<!DOCTYPE html>
<head>
    <meta charset="UTF-8">
    <title>修改商品</title>
    <link rel="stylesheet" href="/layui/css/layui.css">
    <script src="/layui/src/layui.js"></script>
    <script src="/layui/src/jquery-3.2.1.min.js"></script>
    <script src="/js/utils.js"></script>

    <link rel="stylesheet" href="css/ProductUpdate.css">
    <script src="js/ProductUpdate.js"></script>


</head>
<body>

<!--改-->
<div class="layui-container">
    <div class="layui-row">
        <form id="form_id">
            <input type="hidden" name="course" id="courseid">
            <table border="1">
                <tr>
                    <th class="th" colspan="6">编辑商品信息</th>
                    <input type="hidden" name="id">
                </tr>
                <tr>
                    <td class="td1">商品编号：</td>
                    <td>
                        <input type="text" class="layui-input" name="productCode" readonly= "true" id="productCode">
                    </td>
                    <td class="td1">商品名称：</td>
                    <td>
                        <input type="text" class="layui-input"  name="productName" id="productName">
                    </td>
                    <td class="td1">商品售价：</td>
                    <td>
                        <input type="text" class="layui-input"  name="currentpriceProduct" id="currentpriceProduct" onkeyup="value=value.replace(/[^\d{1,}\.\d{1,}|\d{1,}]/g,'')">
                        <!--原价-->
                        <input type="hidden" class="layui-input" name="originalpriceProduct" id="originalpriceProduct">
                    </td>
                </tr>
                <tr>
                    <td class="td1">上传时间：</td>
                    <td>
                        <input type="text" class="layui-input" name="createDate" readonly= "true" id="createDate">
                    </td>
                    <td class="td1">上传人：</td>
                    <td colspan="1">
                        <input type="text" class="layui-input input1" name="createUser" readonly= "true" id="createUser">
                        <!--上传人id-->
                        <input type="hidden" name="createId">
                    </td>
                    <td class="td1">商品分类：</td>
                    <td>
                        <input type="text" class="layui-input input1"  name="categroyName" id="categroyName" readonly= "true">
                        <i class="layui-icon layui-icon-spread-left" onclick="selCouCategory()"></i>
                        <!--分类Id-->
                        <input type="hidden" name="categoryId" id="categoryId">
                    </td>
                </tr>
                <tr>
                    <td class="td1">审核状态：</td>
                    <td>
                        <input type="text" class="layui-input" name="productSate" id="productSate" readonly= "true">
                    </td>
                    <td class="td1">商品标签：</td>
                    <td colspan="1">
                        <input type="text" class="layui-input input1" name="productLabel" id="productLabel">
                    </td>
                    <td class="td1">关键字：</td>
                    <td>
                        <input type="text" class="layui-input input1"  name="searchKeywords" id="searchKeywords">
                    </td>
                </tr>
                <tr>
                    <td class="td1">点赞量：</td>
                    <td>
                        <input type="text" class="layui-input" name="fabulous" id="fabulous"  readonly= "true">
                    </td>
                    <td class="td1">收藏量：</td>
                    <td>
                        <input type="text" class="layui-input"  name="collectionVolume" readonly= "true" id="collectionVolume">
                    </td>
                    <td class="td1">销量：</td>
                    <td>
                        <input type="text" class="layui-input"  name="productSales" readonly= "true" id="productSales">
                    </td>
                </tr>
                <tr>
                    <td class="td1">商品简介：</td>
                    <td colspan="5">
                        <textarea class="textarea1 layui-textarea" name="productDescription" id="productDescription"></textarea>
                    </td>
                </tr>
                <!--<tr>
                    <td class="td1">备注：</td>
                    <td colspan="5">
                        <textarea class="layui-textarea textarea2"  name="remarks" id="remarks"></textarea>
                    </td>
                </tr>-->
                <tr>
                    <td colspan="6" class="td2">
                        <span class="span1"><i class="layui-icon layui-icon-upload"></i>修改封面图</span>
                        <button type="button" class="layui-btn" id="test1">
                            <i class="layui-icon">&#xe67c;</i>上传图片
                        </button>
                    </td>
                </tr>
                <tr>
                    <td class="td3 td5">主图：</td>
                    <td colspan="5" class="td5">
                        <p id="mainImage">

                        </p>
                    </td>
                </tr>
                <tr>
                    <td colspan="6" class="td2">
                        <span class="span1"><i class="layui-icon layui-icon-upload"></i>修改预览图</span>
                        <button type="button" class="layui-btn" id="test2">
                            <i class="layui-icon">&#xe67c;</i>上传图片
                        </button>
                    </td>
                </tr>
                <tr>
                    <td class="td3 td5">预览图：</td>
                    <td colspan="5" class="td5">
                        <p id="mainImage1">

                        </p>
                    </td>
                </tr>
                <tr>
                    <td colspan="6" class="td4">
                        <a href="#"><button type="button" onclick="determine()" class="button1 layui-btn layui-btn-sm layui-btn-primary" >确定</button></a>
                        <button type="button" class="button2 layui-btn layui-btn-sm" onclick="cancels()">取消</button>
                    </td>
                </tr>
            </table>

            <input type="text" id="url" name="url" style="width: 800px"><!--主图-->
            <input type="hidden" id="productId" name="productId"><!--ID-->
        </form>
    </div>
</div>


<!--获取商品id-->
<input type="hidden" name="product_id">
</body>
</html>
